﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp3
{
    class superman:human,IFly,Ieat
    {

        private string name;
        public superman(string name) 
        {
            this.Name = name;
        }

        public string Name { get => name; set => name = value; }

        public void fly()
        {
            Console.WriteLine("我会飞");
        }

        public void batcar() 
        {
            Console.WriteLine("有高科技的车");
        }

        public void eat()
        {
            Console.WriteLine("会吃");
        }
        
    }
}
